Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | var assert = require('chai').assert, |
||
6 | it('Create with JSON', function(){ |
||
7 | var rr = GedcomX.ResourceReference({ |
||
8 | resource: 'http://example.com', |
||
9 | resourceId: 'rid' |
||
10 | }); |
||
11 | assert.equal(rr.getResource(), 'http://example.com', 'Resource not saved properly when created with JSON'); |
||
12 | assert.equal(rr.getResourceId(), 'rid'); |
||
13 | }); |
||
14 | |||
31 | }); |